LIB=-ljsoncpp
all:serve client
rb:clear all

serve:talk_room.cpp
	@g++ -o $@ $^ -std=c++14 $(LIB) -g

trd:talk_room.cpp
	@g++ -o $@ $^ -std=c++14 $(LIB) -DMYDAEMON

client:client.cpp
	@g++ -o $@ $^ -std=c++14 $(LIB) -g

.PHONY:clear

clear:
	@rm -rf client serve trd